package com.py.credit.dao;

import com.py.credit.entity.OnlineTimeLogEntity;
import org.apache.ibatis.annotations.Param;

public interface DingZhiPluginApiDao {

    OnlineTimeLogEntity selectLogInfo(@Param(value = "userId") Long userId,
                                      @Param(value = "minute") Integer minute,
                                      @Param(value = "flag") String flag);

    void insertLog(@Param(value = "userId") Long userId,
                   @Param(value = "deptId") Long deptId,
                   @Param(value = "username") String username,
                   @Param(value = "realname") String realname);

    void updateLog(@Param(value = "id") int id,
                   @Param(value = "minute") Integer minute,
                   @Param(value = "flag") String flag);

    Integer selectTimeStampDiff(@Param(value = "id") int id);
}
